package com.woniuxy.exception;

import lombok.Data;

//异常根类
@Data
public class MovieException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    private Integer code; //异常状态码

    public MovieException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
